package bancosys.tec.persist;

import java.util.LinkedList;
import java.util.List;

import bancosys.tec.persist.base.persister.AuthTestBeanPersister.BusinessMethods;
import bancosys.tec.persist.base.validator.TestBeanValidator.Validation;
import bancosys.tec.persist.controller.TransactionalController;

/**
 * @created Feb 7, 2007
 * @author Gustavo Almeida
 */
public class PersistTestController extends TransactionalController {
    private final List<Validation> validations = new LinkedList<Validation>();

    private final List<BusinessMethods> businessMethods = new LinkedList<BusinessMethods>();

    public void addValidation(Validation name) {
        this.validations.add(name);
    }

    public List<? extends Validation> getValidations() {
        return this.validations;
    }

    public void addBusinessMethod(BusinessMethods name) {
        this.businessMethods.add(name);
    }

    public List<?> getBusinessMethods() {
        return this.businessMethods;
    }
}
